﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Weight.Model.ResultEntity
{
   public  class ContractTicketRes: ContractTicketEntity
    {
        /// <summary>
        /// 订单数量
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 消费数量
        /// </summary>
        public decimal ConsumeAmount { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public decimal RemainAmount {
            get {

                return Math.Round(Amount - ConsumeAmount, 3);
            }
        }

        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 消费金额
        /// </summary>
        public decimal ConsumeMoney { get; set; }

        /// <summary>
        /// 剩余金额
        /// </summary>
        public decimal RemainMoney {
            get {
                return Math.Round(Money - ConsumeMoney, 3);
            }
        }
    }
}
